//验证角色权限;
export default async (ctx,type) =>{
    const {roleid} = ctx.info;
    let oprlimitsArr = await ctx.db.querys(`select roperm from role where roleid='${roleid}'`);
    let resArr = oprlimitsArr[0].roperm.split(',')
    return resArr.includes(type)
}